//
//  Details2TableViewCell.m
//  GiftNote
//
//  Created by lanou3g on 15/8/15.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "Details2TableViewCell.h"
@interface Details2TableViewCell ()
@property (nonatomic,retain) UIImageView *headerImageView;
@property (nonatomic,retain) UILabel *nameLabel;
@property (nonatomic,retain) UILabel *messageLabel;
@end
@implementation Details2TableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _headerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 35, 35)];
        _headerImageView.layer.cornerRadius = 35 / 2;
        _headerImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_headerImageView];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 +5 + 30, 5, 150, 15)];
        _nameLabel.backgroundColor = [UIColor orangeColor];
        _nameLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_nameLabel];
        
        _messageLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 + 5 + 30 , 5 + 15 + 5, 300, 15)];
        _messageLabel.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:_messageLabel];
        
    }
    return self;
}

- (void)setDetailsCell1Model:(ArtiollerModel *)detailsCell1Model{
    _detailsCell1Model = detailsCell1Model;
}

- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
